.pic1{
    margin-top: 50px;
    margin-left: -120px;
    opacity: 0.9;
}
.mya1{
    height: 200px;
    width: 400px;
    background-color: blue;
}
.mya{
    display: flex;  
    align-items: center; /* 垂直居中 */  
    justify-content: flex-start; /* 水平对齐方式，这里默认是左对齐 */  
    height: 250px;
    width: 500px;
    margin: 50px 0px 0px 105px;/*设置外边距，上右下左*/
    background: rgba(219, 235, 241,0.8);
    box-shadow: 0 0 15px rgb(59, 73, 95);/*添加阴影效果，xy偏移为0，模糊半径为15*/
    border-radius: 15px;/*设置边框圆角*/
    overflow: hidden;/*超出隐藏*/
    scroll-snap-align: start;
    transition: all 0.5s ease 0s;
}
.mya:hover{
    cursor: pointer;/*设置光标图标*/
    transform: scale(1.05);/*大小变为1.05倍*/
}

.part1 .img{
    background-image: url("/img/提拉米苏.jpg");
}
.part2 .img{
    background-image: url("/img/西式甜点.jpg");
}
.part3 .img{
    background-image: url("/img/芝士蛋糕.jpg");
}
.part4 .img{
    background-image: url("/img/贺岁礼糖.jpg");
}
.part5 .img{
    background-image: url("/img/马卡龙.jpg");
}
.part6 .img{
    background-image: url("/img/奶茶硬糖.jpg");
}
.part7 .img{
    background-image: url("/img/奶油水果.jpg");
}
.part8 .img{
    background-image: url("/img/太妃糖.jpg");
}

.mya .img{
    height: 250px;
    width: 300px;
    margin-right: 10px; /* 根据需要调整间距 */
    background-size: cover;/*超出不显示*/
    background-position: 0px 0px;/*下移*/
    transition: all 0.5s ease 0s;
    opacity: 0.8;
    background-repeat: no-repeat;
}

.mya .img:hover{
    transform: scale(1.1);
}
.txt{
    font-size: 30px;
    font-weight: bolder;
    color: coral;
    text-align: center;
}
